#include "stm32f10x.h" 
#include "oled.h"
#include "delay.h"
#include "ad.h"

int main(void)
{
    OLED_Init();
    AD_Init();

    OLED_ShowString(1, 1, "AD_Value0:");
    OLED_ShowString(2, 1, "AD_Value1:");

    while (1) 
    {
        AD_GetValue();
        
        OLED_ShowNum(1, 11, ad_value[0], 4);
        OLED_ShowNum(2, 11, ad_value[1], 4);

        Delay_ms(100);
    }
}
